
import Svgicon from './Svgicon.vue'
import Pagination from './Pagination.vue'
import Category  from './Category/index.vue'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'  // 引入element图标库

const allGlobalComponent = {Svgicon,Pagination,Category}

export default{
    install(app){
        Object.keys(allGlobalComponent).forEach(key=>{
            app.component(key,allGlobalComponent[key])
        })
        // 将element所有图标注册为全局图标
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}